package com.dinzeer.godfox.sa;

import com.dinzeer.legendreliclib.lib.compat.slashblade.SwordRainGenerator;
import com.dinzeer.legendreliclib.lib.util.WaitingTick;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.entity.LivingEntity;

public class GodFoxBoost {
    public static void doSlash(LivingEntity playerIn){
        playerIn.addEffect(new MobEffectInstance(MobEffects.HEALTH_BOOST, 100, 2));
        playerIn.addEffect(new MobEffectInstance(MobEffects.DAMAGE_RESISTANCE, 100, 2));
        for (int i = 0; i < 5; i++){
        WaitingTick.schedule(5+i*2, () -> {
            SwordRainGenerator.generateFivePointSwordRain(playerIn, playerIn.level(),5);
        });
        }
    }
}
